@layout("/common/_curd/_container.html"){

<script type="text/javascript">
	var ctx = "${basePath}";
	var grid_selector = "#grid-table";
	var pager_selector = "#grid-pager";
	
	$(function(){
		initGrid();
		initMenuBtn("btns", "${code}");
	});
	
	function initGrid(){
		var grid_url = ctx + "/${code}/list";
		var _colnames = ["主键", 
						"项目id", 
						"联系人", 
						"联系电话", 
						"邮箱", 
						"报送日期", 
						"项目建设进度", 
						"项目建设方案", 
						"批复文件", 
						"立项报告", 
						"试运行报告", 
						"竣工报告", 
						"监理总结报告", 
						"其它文件", 
						""];
		var _colmodel = [{name:"id", index:"id", width:100},
						{name:"pro_id", index:"pro_id", width:100},
						{name:"contact", index:"contact", width:100},
						{name:"phone", index:"phone", width:100},
						{name:"email", index:"email", width:100},
						{name:"indate", index:"indate", width:100},
						{name:"process", index:"process", width:100},
						{name:"scheme", index:"scheme", width:100},
						{name:"batch", index:"batch", width:100},
						{name:"setting_up", index:"setting_up", width:100},
						{name:"test_run", index:"test_run", width:100},
						{name:"over", index:"over", width:100},
						{name:"supervision", index:"supervision", width:100},
						{name:"others", index:"others", width:100},
						{name:"version", index:"version", width:100}];
		
		jQuery(grid_selector).jqGrid({
			url : grid_url,
		    shrinkToFit : true,
			colNames : _colnames,
			colModel : _colmodel, 
			jsonReader : {id :"id"},
			pager : pager_selector,
			postData : {sort : "id", order : "desc"}
		});
	}
</script>


	<!-- 配置 grid -->
	<div class="row">
		<div class="col-xs-12 tb-grid">
			<!-- 配置 查询 -->
			@ var _col=[
@		{name:"主键", index:"id", type:"text"},
			@		{name:"项目id", index:"pro_id", type:"text"},
			@		{name:"联系人", index:"contact", type:"text"},
			@		{name:"联系电话", index:"phone", type:"text"},
			@		{name:"邮箱", index:"email", type:"text"},
			@		{name:"报送日期", index:"indate", type:"text"},
			@		{name:"项目建设进度", index:"process", type:"text"},
			@		{name:"项目建设方案", index:"scheme", type:"text"},
			@		{name:"批复文件", index:"batch", type:"text"},
			@		{name:"立项报告", index:"setting_up", type:"text"},
			@		{name:"试运行报告", index:"test_run", type:"text"},
			@		{name:"竣工报告", index:"over", type:"text"},
			@		{name:"监理总结报告", index:"supervision", type:"text"},
			@		{name:"其它文件", index:"others", type:"text"},
			@		{name:"", index:"version", type:"text"}							
			@];
			@ include("/common/_function/_search.html",{"col":_col}){}
			<!-- 按钮 -->
			<div class="welljq well-sm" id="btns"></div>
			<!-- grid -->
			<table id="grid-table"></table>
			<!-- 分页-->
			<div id="grid-pager"></div>
		</div>
	</div>
	
	<!-- 引入所需的js -->
	@include("/common/_listscript.html"){}
	
@}	